﻿@using AmorCanino.Web.Models.Models
@model List<FullComunication>
@{
    Layout = "~/Views/Shared/_PartialAccountLayout.cshtml";
    ViewBag.Title = "Mensajes";
}
@section JavaScript {
    <script type="text/javascript" src="@Url.Content("~/Scripts/MyMessages.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-tmpl-min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/tools.js")"></script>
}
<div class="messages-container">
    <div class="message-list">
        @foreach (var item in Model)
        {
            Html.RenderPartial("_message", item);
        }
    </div>
    <div>
        <div class="message-body-container">
        </div>
        <div><input type="text" style="width:300px;" class="chateTextBox" /><input type="button" value="Enviar" class="sendButton" /></div>
    </div>
</div>
@Html.Hidden("RequestMessageURL", Url.Action("RequestMessage", "Account"))
@Html.Hidden("PostMessageURL", Url.Action("PostMessage", "Account"))
@Html.Hidden("UserId", AmorCanino.Web.Models.Authentication.AuthUser.Current().id)

<div style="display:none;" class="messageEmptyContainerUpper">
    <div class="messageEmptyTemplate">
        <div style="float:left; margin-right:5px;"><img src="/ImageServices/getProfileThumbnail.pet?uId=${UserId}" /></div>
        <div>
            <p>${Message}</p>
            <p>${PublishedDate}</p>
        </div>
    </div>
</div>